package com.leyou.order.mapper;

import com.leyou.common.mapper.BaseMapper;
import com.leyou.order.entity.Order;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * @author Eric
 */
public interface OrderMapper extends BaseMapper<Order> {

    @Select("select id from tb_order where status=1 and create_time<=#{deadline}")
    List<Long> queryOverdueUnpaidOrder(Date deadline);
}